package com.example;

import com.example.factorybean.ToolFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.data.mongodb.repository.config.EnableReactiveMongoRepositories;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableReactiveMongoRepositories
public class App 
{
    public static void main( String[] args )
    {
        SpringApplication.run(App.class, args);

    }

    @Bean
    public FactoryBean factoryBean() {
        return  new FactoryBean() {
            @Override
            public Object getObject() throws Exception {
                return null;
            }

            @Override
            public Class<?> getObjectType() {
                return Object.class;
            }
        };
    }

}
